import api from '@/api/proxy'

// 获取知识库列表
export const getKnowledgeBaseList = (params) => {
    return api.get(`/kb/list`, { params })
}

// 创建知识库
export const createKnowledgeBase = (knowbaseName) => {
    return api.post(`/kb/create`, null, {
        params: {
            knowbase_name: knowbaseName
        }
    })
}

// 删除知识库
export const deleteKnowledgeBase = (knowbaseId) => {
    return api.delete(`/kb/delete/${knowbaseId}`)
}